<?php

namespace common\logics\navigation;

use Yii;
use common\models\CacheModel;

/**
 * 顶部导航栏
 * TopBarLogic
 */
class TopBarLogic extends CacheModel {

    /**
     * 获取当前导航
     * @return array
     */
    public static function current() {
        return self::getCache();
    }

    /**
     * 默认导航
     * @return array
     */
    public static function cacheDefault() {
        return [
            [
                'title' => '推荐',
                'cateid' => 2,
                'redirect' => "http://h5.lunengsports.net/#/tsline/channel/1"
            ],
            [
                'title' => '官方',
                'cateid' => 3,
                'redirect' => "http://h5.lunengsports.net/#/tsline/channel/1"
            ],
            [
                'title' => '综合',
                'cateid' => 15,
                'redirect' => "http://h5.lunengsports.net/#/tsline/channel/1"
            ],
            [
                'title' => '球队',
                'cateid' => 26,
                'redirect' => "http://h5.lunengsports.net/#/tsline/channel/2"
            ],
            [
                'title' => '媒体',
                'cateid' => 9,
                'redirect' => "http://h5.lunengsports.net/#/tsline/channel/3"
            ],
            [
                'title' => '鲁蜜',
                'cateid' => 25,
                'redirect' => "http://h5.lunengsports.net/#/tsline/channel/4"
            ],
            [
                'title' => '青训',
                'cateid' => 5,
                'redirect' => "http://h5.lunengsports.net/#/tsline/channel/5"
            ],
            [
                'title' => '乒乓球',
                'cateid' => 6,
                'redirect' => "http://h5.lunengsports.net/#/tsline/channel/6"
            ],
            [
                'title' => '图片',
                'cateid' => 13,
                'redirect' => "http://h5.lunengsports.net/#/tsline/channel/7"
            ],
            [
                'title' => '视频',
                'cateid' => 14,
                'redirect' => "http://h5.lunengsports.net/#/tsline/channel/8"
            ],
        ];
    }

}
